let addPowerFormRules = {
    role_id: [{
            required: true,
            message: "请输入role_id",
            trigger: "blur",
        },
        {
            type: "number",
            min: 5,
            max: 6,
            messasge: "权限等级1~5,请输入role_id",
            trigger: "blur",
        },
    ],
    id: [
        { required: true, message: "请输入id", trigger: "blur" },
        {
            type: "number",
            min: 1,
            max: 100,
            messasge: "id取1~100之间",
            trigger: "blur",
        },
    ],
}
let addFormRules = {
    username: [
        { required: true, message: "请输入用户名", trigger: "blur" },
        {
            min: 2,
            max: 10,
            messasge: "用户名长度在3~10个字符之间",
            trigger: "blur",
        },
    ],
    password: [
        { required: true, message: "请输入密码", trigger: "blur" },
        {
            min: 6,
            max: 15,
            messasge: "密码长度在6~15个字符之间,且必须使用数字和字母",
            trigger: "blur",
        },
    ],
    role_id: [
        { required: true, message: "请选择权限", trigger: "blur" },
    ],
    //     name: [
    //         { required: true, message: "请输入名字", trigger: "blur" },
    //     ],
    //     phone_number: [
    //         { required: true, message: "请输入电话", trigger: "blur" },
    //     ],
}
let options = [{
        value: 6,
        label: '超级管理员',
    },
    {
        value: 5,
        label: '观察员',
    },
]
module.exports = {
    addPowerFormRules,
    addFormRules,
    options
}